﻿<%@ Page Language="C#" MasterPageFile="~/cn/PMasterPage.master" AutoEventWireup="true" CodeFile="products.aspx.cs" Inherits="cn_products" Title="无标题页" %>
<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="productsContentPlaceHolder" Runat="Server">
    <div class="pageDiyer">
        <webdiyer:aspnetpager runat="server" ID="AspNetPager1" Width="100%" 
            NumericButtonCount="6" UrlPaging="true" NumericButtonTextFormatString="[{0}]" 
            CustomInfoHTML="第<font color='red'><b>%CurrentPageIndex%</b></font>页 共 %PageCount%页 显示 %StartRecordIndex%-%EndRecordIndex%" ShowCustomInfoSection="left" 
        FirstPageText="首页" LastPageText="末页" NextPageText="下页" PrevPageText="上页" 
        Font-Names="Arial" BackColor="#F8B500" AlwaysShow="true" 
            ShowPageIndexBox="Always" SubmitButtonText="跳转" SubmitButtonStyle="button" onpagechanged="AspNetPager1_PageChanged" PageSize="9"
        ></webdiyer:aspnetpager>
    </div>
    <div class="productList">
        <table>
            <tr>
                <td>
                    <asp:Repeater ID="productListRepeater" runat="server">
                        <ItemTemplate>
                            <div  style="float:left;width:190px;margin-left:25px;margin-right:13px;margin-top:10px;">
                                    <div style="float:left;width:190px;height:190px;padding:2px;border:1px #D4D0C8 solid;">
                                        <%--<a href="ProductsInfo.aspx?id=<%#Eval("producs_id") %>"><img src="../images/<%#Eval("producs_photo")%>_.jpg" width="200px" height="150px" border="0" /></a>--%>
                                        <a href="showproduct.aspx?pid=<%#Eval("productId") %>" title="点击查看详细产品信息 <%#Eval("productName_cn") %>" target="_blank"><img src="../pimages/<%#Eval("productImage")%>" alt="<%#Eval("productName_cn")%>" border="0"  width="190px" height="190px"/></a>
                                    </div>
                                    <div style="float:left;width:180px;height:30px;line-height:30px;text-align:center;">
                                        <a href="showproduct.aspx?pid=<%#Eval("productId") %>" title="点击查看详细产品信息 <%#Eval("productName_cn") %>"><font color="black" style="font-size:12px"><%#cutstr(Eval("productName_cn").ToString(), 12)%></font></a>
                                    </div>
                                </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

